/** Testing Zone -- Hard Hats Only
    CS158A Spring 2010
    @author Clare Lanam
    */

public class UserTest
{
   /** Testing area
       @param args runtime input (unused)
       */
   
   public static void main(String[] args)
   {
      Bridge b1 = new Bridge("b1");
      Bridge b2 = new Bridge("b2");
      Bridge b3 = new Bridge("b3");
      
      Link link1 = new Link(1); // b1 -- b2
      Link link2 = new Link(1); // b2 -- b3
      Link link3 = new Link(1); // b3 -- b1
      /*
      // make a triangle! :D
      b1.addPortOntoLink(link1);
      b1.addPortOntoLink(link3);
      b2.addPortOntoLink(link1);
      b2.addPortOntoLink(link2);
      b3.addPortOntoLink(link2);
      b3.addPortOntoLink(link3);*/
      
      System.out.println(b1);
      System.out.println(b2);
      System.out.println(b3);
      System.out.println();
      
      System.out.println(link1);
      System.out.println(link2);
      System.out.println(link3);
      System.out.println();
      
      Thread thread1 = new Thread(b1);
      Thread thread2 = new Thread(b2);
      Thread thread3 = new Thread(b3);
      
      thread1.start();
      thread2.start();
      thread3.start();
   }
}
